package com.example.controller;


import com.example.common.result.Result;
import com.example.entity.vo.CmsmeVo;
import com.example.mapper.CmsmeMapper;
import com.example.service.CmsmeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-28
 */
@RestController
@RequestMapping("/api/cmsme")
@Slf4j
@Api(tags = "部门信息相关接口")
public class CmsmeController {
    @Resource
    private CmsmeService cmsmeService;

    @Resource
    private CmsmeMapper cmsmeMapper;

    @ApiOperation("部门信息vo列表")
    @GetMapping("/cmsmeVoList")
    public Result<List<CmsmeVo>> cmsmeVoList(){
        List<CmsmeVo> list = cmsmeMapper.selectCmsmeVoList();
        return Result.success(list);
    }

}
